package net.url;

import java.net.URL;
import java.util.Calendar;
import java.util.Date;

public class URLTimeClient
{
	public static void main(String[] args)
	{
		System.setProperty("java.protocol.handler.pkgs", "com.macfaq.net.www.protocol");
		try
		{
			URL u = new URL("time://tock.usno.navy.mil/");
			@SuppressWarnings({ "rawtypes" })
			Class[] types = {String.class,Date.class,Calendar.class,Long.class};
			Object o = u.getContent(types);
			System.out.println(o);
		}
		catch (Exception e)
		{
		}
	}
}
